package HOME;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class JD implements  Switch{
    public String name;
    private boolean status; //false默认

    @Override
    public void press() {
        status = !status;

    }
}
